//
// Created by ub on 2020/11/10.
//
#include <iostream>
using namespace std;
template <typename T> void showArray(T arr[] , int n);
template <typename T> void showArray(T * arr[] , int n);
struct debts
{
   char name[50];
   double amount;
};
/*int main ()
{
  int things[6] = {13,31,103,301,310,130};
  struct debts mr_E[3] =
  {
    {"Ima wolfe",245.43},
    {"Ura foxe",1390.43},
    {"Iby stout",3223.32}
  };
  double * pd[3];
  for(int i=0;i<3;++i)
    pd[i] = &mr_E[i].amount;
  cout << "Listing Mr. E's counts of things:\n";
  showArray(things,6);
  cout << "Listing Mr.E's debts:\n";
  showArray(pd,3);
  return 0;
}*/
template <typename T> void showArray(T arr[] , int n)
{
  cout << "template A\n";
  for (int i =0;i<n;i++)
  {
    cout << arr[i] << " ";
  }
  cout << endl;
}
template <typename T> void showArray(T * arr[] , int n)
{
    cout << "template B\n";
    for (int i =0;i<n;i++)
    {
        cout << *arr[i] << " ";
    }
    cout << endl;
}